﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EFFC.Net.Data.DBData;

namespace EFFC.Net.Returns
{
    /// <summary>
    /// DBAccess返回值定义
    /// </summary>
    [Serializable]
    public class DBARe : ReturnStd
    {
        public DBARe()
        {
            this.AddReElement("DataSet", typeof(DataSetStd));
            this.AddReElement("DataTable", typeof(DataTableStd));
            this.AddReElement("Result", typeof(int));
            this.AddReElement("StrResult");
        }

        public DataSetStd R_DataSet
        {
            get
            {
                return this.GetValue<DataSetStd>("DataSet");
            }
            set
            {
                _p["DataSet"].Value = value;
            }
        }
        public DataTableStd R_DataTable
        {
            get
            {
                return this.GetValue<DataTableStd>("DataTable");
            }
            set
            {
                _p["DataTable"].Value = value;
            }
        }
        public int IntResult
        {
            get
            {
                return this.GetValue<int>("Result");
            }
            set
            {
                _p["Result"].Value = value;
            }
        }
        public string StringResult
        {
            get
            {
                return this.GetValue<string>("StrResult");
            }
            set
            {
                _p["StrResult"].Value = value;
            }
        }
    }
}
